import axios from 'axios'

const request = axios.create(
  {
    baseURL: 'http://42.192.129.12:8888/api/private/v1/'
  }
)
// 请求拦截器
request.interceptors.request.use(function (config) {
  config.headers.Authorization = window.sessionStorage.getItem('TOKENKEY')
  return config
}, err => {
  return Promise.reject(err)
})
export default request
